package com.sca;

import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;

@Component
public class ProductFeignClientFallBack implements  MyFeignClient {

	/**
	 * 熔断降级的方法
	 */
	@Override
	public JSONObject findById(Integer id) {
		JSONObject obj = new JSONObject();
		obj.put("msg","基于feign调用触发熔断降级");
		return obj;
	}

}